Page({
  data: {
    radios: [
      { value: 'key1', name: '单选一' },
      { value: 'key2', name: '单选二', checked: 'true' },
      { value: 'key3', name: '单选三' }
    ],
    checkboxs: [
      { value: 'key1', name: '吃饭', checked: 'true' },
      { value: 'key2', name: '睡觉', checked: 'true' },
      { value: 'key3', name: '打豆豆' },
      { value: 'key4', name: '抽烟' },
      { value: 'key5', name: '喝酒' },
      { value: 'key6', name: '烫头' }
    ]
  },
  handleChangeSwitch(e) {
    wx.showToast({
      title: `switch的值为${e.detail}`,
      icon: 'none'
    })
  },
  handleRadiosChange(e) {
    wx.showToast({
      title: `选择了${JSON.stringify(e.detail)}`,
      icon: 'none'
    })
  },
  handleCheckboxsChange(e) {
    wx.showToast({
      title: `选择了${JSON.stringify(e.detail)}`,
      icon: 'none'
    })
  }
})